//
//  DownloadingCell.m
//  HB
//
//  Created by 陶秋安 on 16/3/29.
//  Copyright © 2016年 孙智慧. All rights reserved.
//

#import "DownloadingCell.h"
#import "DownloadProess.h"
#import "DownLoad.h"

@implementation DownloadingCell

- (void)awakeFromNib {
    //RegisterNotify(NofifyDownLoad, @selector(stopNavBtnRoation:));
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
}

-(void) setProgess:(CGFloat)currValue
{
    dispatch_sync(dispatch_get_main_queue(), ^{
        self.proDownload.progress=currValue;
    });
}

-(void) stopNavBtnRoation:(NSNotification *) notification
{
    DownloadProess *ss= [notification object];

    dispatch_sync(dispatch_get_main_queue(), ^{
        self.proDownload.progress=[ss getPro];
    });

}

@end
